package com.ithiema.a01myfunction;

import java.util.ArrayList;
import java.util.Collections;

public class FunctionDemo1 extends ToInt {

    public void mm(){
        //引用静态方法
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "a-1", "b-2", "c-3", "d-4");

        list.stream()
                .map(super::toInt)
                .forEach(s-> System.out.println(s));

        System.out.println("==============");
    }

}
